package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.ShopingCarQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {
    /**
     * 新增和编辑
     * @param user
     */
    void saveOrUpdate(User user);

    User login(User user);

    boolean checkEmail(String email);


    PageInfo query(QueryObject qo);

    User get(Long authorId);



    void follows(Long theirsId);

    void cancelFollow(Long theirsId);

    List<Long> getFansByUserId(Long id);

    List<Long> getFollowByUserId(Long id);

    /**
     * 查询用户购物车中产品
     * @param qo
     * @return
     */
    PageInfo queryProducts(ShopingCarQueryObject qo);


}
